package com.zmx.procurementmall;

import android.app.Application;

import com.zmx.procurementmall.utils.MySharedPreferences;

/**
 * 程序猿：胖胖祥
 * 时 间：2020/7/21  21:43
 * 功 能：
 */
public class MyApplication extends Application {

    private static MyApplication mApplication;

    @Override
    public void onCreate() {
        super.onCreate();
        mApplication = this;

    }

    public static MyApplication getContext() {
        return mApplication;
    }
    public static boolean isLogin_state() {
        return MySharedPreferences.getInstance(mApplication).getBoolean("login",false);
    }

}
